package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TeaShopSalaryMapper;
import com.ruoyi.system.domain.TeaShopSalary;
import com.ruoyi.system.service.ITeaShopSalaryService;
import com.ruoyi.common.core.text.Convert;

/**
 * 员工工资Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-16
 */
@Service
public class TeaShopSalaryServiceImpl implements ITeaShopSalaryService 
{
    @Autowired
    private TeaShopSalaryMapper teaShopSalaryMapper;

    /**
     * 查询员工工资
     * 
     * @param id 员工工资主键
     * @return 员工工资
     */
    @Override
    public TeaShopSalary selectTeaShopSalaryById(Long id)
    {
        return teaShopSalaryMapper.selectTeaShopSalaryById(id);
    }

    /**
     * 查询员工工资列表
     * 
     * @param teaShopSalary 员工工资
     * @return 员工工资
     */
    @Override
    public List<TeaShopSalary> selectTeaShopSalaryList(TeaShopSalary teaShopSalary)
    {
        return teaShopSalaryMapper.selectTeaShopSalaryList(teaShopSalary);
    }

    /**
     * 新增员工工资
     * 
     * @param teaShopSalary 员工工资
     * @return 结果
     */
    @Override
    public int insertTeaShopSalary(TeaShopSalary teaShopSalary)
    {
        return teaShopSalaryMapper.insertTeaShopSalary(teaShopSalary);
    }

    /**
     * 修改员工工资
     * 
     * @param teaShopSalary 员工工资
     * @return 结果
     */
    @Override
    public int updateTeaShopSalary(TeaShopSalary teaShopSalary)
    {
        return teaShopSalaryMapper.updateTeaShopSalary(teaShopSalary);
    }

    /**
     * 批量删除员工工资
     * 
     * @param ids 需要删除的员工工资主键
     * @return 结果
     */
    @Override
    public int deleteTeaShopSalaryByIds(String ids)
    {
        return teaShopSalaryMapper.deleteTeaShopSalaryByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除员工工资信息
     * 
     * @param id 员工工资主键
     * @return 结果
     */
    @Override
    public int deleteTeaShopSalaryById(Long id)
    {
        return teaShopSalaryMapper.deleteTeaShopSalaryById(id);
    }
}
